<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>后台管理</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../../css/font.css">
		<link rel="stylesheet" href="../../css/xadmin.css">
		<script type="text/javascript" src="../../js/jquery-3.2.1.js"></script>
		<script type="text/javascript" src="../../lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="../../js/xadmin.js"></script>

	</head>

	<body>
		<div class="x-body">
			<form class="layui-form" lay-filter="formTest">
				<div class="layui-form-item">
					<label for="fixBillId" class="layui-form-label">
                  ID
              </label>
					<div class="layui-input-inline">
						<input type="text" id="fixBillId" name="fixBillId"  autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="state" class="layui-form-label">状态</label>
					<div class="layui-input-inline">
						<select name="option" lay-verify="required">
							<option value="0">未选择</option>
							<option value="1">未归还</option>
							<option value="2">已归还</option>
						</select>	
					</div>
				</div>
				<!-- <div class="layui-form-item">
					<div class="layui-form-label" style="padding-top: 0px;
    padding-bottom: 0px;
    width: 90px;
    padding-left: 5px;">
						<select name="option" lay-verify="required">
							<option value="0">管理员ID</option>
							<option value="1">管理员</option>
							<option value="2">用户ID</option>
							<option value="3">用户名</option>
						</select>
					</div>

					<div class="layui-input-inline">
						<input type="text" id="userId" name="userId" required="" lay-verify="number" autocomplete="off" class="layui-input">
					</div>

				</div> -->
				
				<div class="layui-form-item">
					<label for="" class="layui-form-label">借出时间    </label>
					<div class="layui-input-inline">
						<input type="text" id="startLendTime" name="startLendTime" required="date" autocomplete="off" class="layui-input date-item">
					</div>
					<div class="layui-input-inline" style="width: auto;">_</div>
					<div class="layui-input-inline">
						<input type="text" id="endLendTime" name="endLendTime" required="date" autocomplete="off" class="layui-input date-item">
					</div>
				</div>
				<div class="layui-form-item">
					<label for="" class="layui-form-label">归还时间     </label>
					<div class="layui-input-inline">
						<input type="text" id="startRestoreTime" name="startRestoreTime" required="date" autocomplete="off" class="layui-input date-item">
					</div>
					<div class="layui-input-inline" style="width: auto;">_</div>
					<div class="layui-input-inline">
						<input type="text" id="endRestoreTime" name="endRestoreTime" required="date" autocomplete="off" class="layui-input date-item">
					</div>
				</div>

				<div class="layui-form-item">
					<label for="L_repass" class="layui-form-label"></label>
					<button class="layui-btn" lay-filter=retrieval lay-submit="">检索</button>
				</div>
			</form>
		</div>
		<script type="text/javascript">
			console.log("未完成")
			layui.use(['form', 'laydate'], function() {
				var form = layui.form;
				var laydate = layui.laydate;

				$('.date-item').each(function() {
					laydate.render({
						elem: this,
						type: 'datetime'
					});
				});

				form.on('submit(retrieval)', function(data) {
					var param = data.field
                    param.option = "";
                    var param1 = "";
                    $.each(param, function(i,t) {
                        if(t!=null&&t!=undefined&&t.toString().trim()!=""){
                            param1 += "&" + i + "=" + t ;
                        }
                    });
                    console.log(param1.substr(1))
                    x_admin_show('检索结果','./key-record.html?'+param1.substr(1));
					return false;
				});
			});
		</script>

	</body>

</html>